//
//  MPMenuCell.m
//  MarkPlatform
//
//  Created by xiao6 on 2017/12/17.
//  Copyright © 2017年 AT. All rights reserved.
//

#import "MPMenuCell.h"

@implementation MPMenuCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleDefault;
    self.selectedBackgroundView = [[UIView alloc] init];
    self.selectedBackgroundView.backgroundColor = [UIColor colorWithRGB:0xF3F3F3];
}

+ (CGFloat)cellHeight {
    return 50.0f;
}
- (void)setModel:(MPMenuModel *)model {
    _model = model;
    
    self.titleLabel.text = _model.title;
    self.iconView.image = [UIImage imageNamed:_model.image];
}
@end
